<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.*" %>
<%@ page import="java.util.*" %>

<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ page import="com.chanyachting.emall.dao.*" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.service.*" %>
<%@ page import="com.chanyachting.emall.serviceImpl.*" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>

<script type="text/javascript" src="<%=root %>/js/jquery-1.3.2.min.js" charset="utf-8">//ADCRM</script>
<script type="text/javascript" src="<%=root %>/js/jquery.form.js" charset="utf-8">//ADCRM</script>

<script language="javascript" type="text/javascript">

	$(function(){

		$.ajaxSetup ({
		    cache: false //关闭AJAX相应的缓存
		});

		});


	
	function saveproduct(theForm){

		//alert(theForm.action);

		options={
			    url:theForm.action,
			    success: function(data){
					
					alert("创建成功！");
				    }
			  };
				
		$(theForm).ajaxSubmit(options);
	}

</script>
<%

	//从session中获得公司对象
	RequestUtil ru=new RequestUtil(request);
	
	Company company=(Company)ru.getSessionObject(CompanyService.COMPANY_IN_SESSION,new Company());
	
	String id = ru.getParameter("id","0").trim();
	
	String actionName = "";
	String actionType = "";
	
	if ("0".equals(id)) {
		actionName = "/memberBackend/showyachtCreate.do";
		id = "";
		actionType = "发布";
	} else {
		actionName = "/memberBackend/showyachtUpdate.do";
		actionType = "修改";
	}
%>

</head>

<body>
<div class="tab_box">
	<div class="tab_menu">
        
        <a href="product_showyacht_create.jsp" class="current"><%=actionType %>游艇展览</a>
    </div>
	<div class="tab_submenu">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%"><span class="mu_title">
          <a href="product_showyacht_create.jsp">基本信息</a> 
          <a href="in3_4_b.html">图文信息</a></span></td>
          <td align="right"><strong><a href="#">预览</a><a href="#">打印</a><a href="#">导出</a></strong></td>
        </tr>
      </table>
	</div>
</div>

<form action="<%=root %><%=actionName %>" method="post" enctype="multipart/form-data" name="form3" id="form3">

<input type="hidden" name="companyId" value="<%= company.getId() %>" />
<input type="hidden" name="point" value="0" />
<input type="hidden" name="type" value="04" />
<input type="hidden" name="status" value="00" />
<input type="hidden" name="id" value="<%=id %>" />

  <div id="bigbox">
  
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="50%"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="100" height="28" align="right">产品名称：</td>
              <td><label>
                <input type="text" name="name" id="textfield47" value="${showyachtForm.showyacht.name}" />
              </label></td>
            </tr>
            
        </table></td>
        <td valign="bottom">&nbsp;</td>
      </tr>
      <tr>
        <td valign="bottom">&nbsp;</td>
        <td valign="bottom">&nbsp;</td>
      </tr>
    </table>
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="3" class="td_top">&nbsp;</td>
      </tr>
      <tr>
        <td width="100" align="left"><div class="ptitle">主要特点</div></td>
        <td width="230" height="28" align="right">展览日期：</td>
        <td width="370"><label>
        <input type="text" name="showDate" id="textfield47" value="${showyachtForm.showyacht.showDate}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">开放时间：</td>
        <td><label>
       <input type="text" name="openDate" id="textfield47" value="${showyachtForm.showyacht.openDate}" />
</label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">参观方式：</td>
        <td><label>
          <input type="text" name="showWay" id="textfield33" value="${showyachtForm.showyacht.showWay}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">现场地点：</td>
        <td><label>
          <input type="text" name=address id="textfield34" value="${showyachtForm.showyacht.address}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">国家：</td>
        <td><label>
          <select name="state" id="select8">
          	<option value="00">请选择</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">地区：</td>
        <td><label>
          <select name="area" id="select9">
          	<option value="00">请选择</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">电话：</td>
        <td><input type="text" name="tell" id="textfield64" value="${showyachtForm.showyacht.tell}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">传真：</td>
        <td><input type="text" name="fax" id="textfield65" value="${showyachtForm.showyacht.fax}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">电子邮件：</td>
        <td><input type="text" name="email" id="textfield66" value="${showyachtForm.showyacht.email}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">网站：</td>
        <td><input type="text" name="web" id="textfield67" value="${showyachtForm.showyacht.web}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">距离市中心：</td>
        <td><input type="text" name="centerDistance" id="textfield68" value="${showyachtForm.showyacht.centerDistance}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">距离机场：</td>
        <td><label>
          <input type="text" name="airDistance" id="textfield69" value="${showyachtForm.showyacht.airDistance}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">运输安排从机场：</td>
        <td><label>
          <input type="text" name="transport" id="textfield70" value="${showyachtForm.showyacht.transport}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">包住宿安排：</td>
        <td><label>
          <input type="text" name="lodging" id="textfield71" value="${showyachtForm.showyacht.lodging}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">组织者：</td>
        <td><label>
          <input type="text" name="organizer" id="textfield72" value="${showyachtForm.showyacht.organizer}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="right">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" class="td_top">&nbsp;</td>
      </tr>
      <tr>
        <td align="left"><div class="ptitle">展览规模</div></td>
        <td height="28" align="right">总面积：</td>
        <td><input type="text" name="allArea" id="textfield73" value="${showyachtForm.showyacht.allArea}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">净面积：</td>
        <td><input type="text" name="useArea" id="textfield74" value="${showyachtForm.showyacht.useArea}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">参展商数目：</td>
        <td><label>
          <input type="text" name="joinNumber" id="textfield75" value="${showyachtForm.showyacht.joinNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">国内参展商：</td>
        <td><label>
          <input type="text" name="domesticJoinNumber" id="textfield76" value="${showyachtForm.showyacht.domesticJoinNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">外国参展商：</td>
        <td><input type="text" name="overseasJoinNumber" id="textfield74" value="${showyachtForm.showyacht.overseasJoinNumber}" /></td>
      </tr>
      <tr>
        <td colspan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" class="td_top">&nbsp;</td>
      </tr>
      <tr>
        <td align="left"><div class="ptitle">出席/访客</div></td>
        <td height="28" align="right">国内贸易：</td>
        <td><label>
          <input type="text" name="domesticBizNumber" id="textfield77" value="${showyachtForm.showyacht.domesticBizNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">外贸：</td>
        <td><label>
          <input type="text" name="overseasBizNumber" id="textfield78" value="${showyachtForm.showyacht.overseasBizNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">所有贸易：</td>
        <td><label>
          <input type="text" name="allBizNumber" id="textfield79" value="${showyachtForm.showyacht.allBizNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">支付游客：</td>
        <td><label>
          <input type="text" name="payNumber" id="textfield80" value="${showyachtForm.showyacht.payNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">访问总数：</td>
        <td><label>
          <input type="text" name="allAccessNumber" id="textfield81" value="${showyachtForm.showyacht.allAccessNumber}" />
        </label></td>
      </tr>
      <tr>
        <td colspan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" class="td_top">&nbsp;</td>
      </tr>
      <tr>
        <td align="left"><div class="ptitle">展品组成</div></td>
        <td height="28" align="right">帆船：</td>
        <td><label>
          <input type="text" name="sailNumber" id="textfield82" value="${showyachtForm.showyacht.sailNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">动力艇：</td>
        <td><label>
          <input type="text" name="powerboatNumber" id="textfield83" value="${showyachtForm.showyacht.powerboatNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right"><label>其他船只：</label></td>
        <td><label>
          <input type="text" name="otherboatNumber" id="textfield84" value="${showyachtForm.showyacht.otherboatNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right"><p>配件/设备 ：</p></td>
        <td><label>
          <input type="text" name="fittingsNumber" id="textfield85" value="${showyachtForm.showyacht.fittingsNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right"><p>帆板运动 ：</p></td>
        <td><label>
          <input type="text" name="fanbanNumber" id="textfield86" value="${showyachtForm.showyacht.fanbanNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">发动机：</td>
        <td><input type="text" name="engineNumber" id="textfield87" value="${showyachtForm.showyacht.engineNumber}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">配套服务：</td>
        <td><input type="text" name="serviceNumber" id="textfield88" value="${showyachtForm.showyacht.serviceNumber}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">潜水：</td>
        <td><input type="text" name="diveNumber" id="textfield89" value="${showyachtForm.showyacht.diveNumber}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">其他：</td>
        <td><input type="text" name="otherNumber" id="textfield90" value="${showyachtForm.showyacht.otherNumber}" /></td>
      </tr>

      <tr>
        <td colspan="2" align="right">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" class="td_top"><table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="right">&nbsp;</td>
            <td width="550">&nbsp;</td>
          </tr>
          <tr>
            <td width="150" align="right">选择发布产品类型：</td>
            <td>
                <input type="radio" name="radio" id="radio3" value="radio" />
              立即发布
              <input type="radio" name="radio" id="radio4" value="radio2" />
              待上架 　 <span class="txt_gray">什么是待上架? 说明：待上架的内容不在前台显示</span></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" class="td_bottom">&nbsp;</td>
      </tr>
      <tr>
        <td height="60" align="center"><label>
          <input type="button" name="button3" id="button3" value="预览" />
          <input type="button" name="button3" id="button4" value="保存" onclick="saveproduct(this.form);"/>
          <input type="reset" name="button3" id="button6" value="取消" />
        </label></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
